package com.wx.mall.feign;



import com.wx.mall.common.vo.goods.SkuVo;
import com.wx.mall.common.vo.goods.SpuVo;
import com.wx.mall.feign.hystrix.GoodListFeignClientHystrix;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(value = "mall-goods",fallback = GoodListFeignClientHystrix.class)
public interface GoodListFeignClient {
    @GetMapping("/skufeign/listById")
    SkuVo listById(@RequestParam Integer id);
    @GetMapping("/spufeign/getList")
    List<SpuVo> getList();

}
